#!/usr/bin/python

import sys
# if(len(sys.argv) != 3):
#         print 'ERROR: This script expects 2 arguments.'
#         print 'Usage: python cp_file.py <file_id> <dest>'
#         sys.exit(1)

import os
from django.core.management import setup_environ
sys.path = ['/var/django/'] + sys.path
from proto import settings
setup_environ(settings)
                
import bixfile.models

pf = bixfile.models.FolderUpload(title="parent", parent_folder=None)
pf.save()
cf = bixfile.models.FolderUpload(title="child", parent_folder=pf)
cf = bixfile.models.FolderUpload(title="child", parent_folder=pf)
cf.save()
print pf.subfolders.all()
print cf.subfolders.all()


